\hypertarget{settings-dialog_8cpp}{}\doxysubsection{src/settings-\/dialog.cpp File Reference}
\label{settings-dialog_8cpp}\index{src/settings-\/dialog.cpp@{src/settings-\/dialog.cpp}}
{\ttfamily \#include \char`\"{}embroidermodder.\+h\char`\"{}}\newline
{\ttfamily \#include $<$fstream$>$}\newline
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{settings-dialog_8cpp_a6f6581a1ff693609d9383918b99117a7}{make\+\_\+editing\+\_\+copy}} (\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} props)
\item 
void \mbox{\hyperlink{settings-dialog_8cpp_a85956dc9849133da7b4bf0c7be510513}{read\+\_\+settings}} (void)
\begin{DoxyCompactList}\small\item\em read\+\_\+settings \end{DoxyCompactList}\item 
void \mbox{\hyperlink{settings-dialog_8cpp_a8dd746dfd5b2f0859b7d4f6a9b7cde80}{write\+\_\+settings}} (void)
\begin{DoxyCompactList}\small\item\em Main\+Window\+::write\+Settings. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{embroidermodder_8h_a4eea196dcdbc639ced9795286fc1bf1e}{Dictionary}} \mbox{\hyperlink{settings-dialog_8cpp_a88c087253e91f6285b91958e77a3d401}{preview}}
\item 
\mbox{\hyperlink{embroidermodder_8h_a4eea196dcdbc639ced9795286fc1bf1e}{Dictionary}} \mbox{\hyperlink{settings-dialog_8cpp_aa0e77cd8c0b3c23654afe61a9615ed8a}{accept\+\_\+}}
\item 
\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} \mbox{\hyperlink{settings-dialog_8cpp_a9fb534ec665bb6dc228988512525beb6}{extensions}}
\item 
\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} \mbox{\hyperlink{settings-dialog_8cpp_a3415c43dc9ddd4e350a3cd05408d5e90}{general\+\_\+props}}
\item 
\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} \mbox{\hyperlink{settings-dialog_8cpp_ab0cd7ef18c1d39e48f306c09d8763684}{display\+\_\+props}}
\item 
\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} \mbox{\hyperlink{settings-dialog_8cpp_a9c848650a85b3e2aad23a0afa5cf922d}{prompt\+\_\+props}}
\item 
\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} \mbox{\hyperlink{settings-dialog_8cpp_a1bf7f5a1ff3294041a5188afff074aa6}{quick\+\_\+snap\+\_\+props}}
\item 
\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} \mbox{\hyperlink{settings-dialog_8cpp_a93f1c79614443586aa3717994044ab41}{opensave\+\_\+props}}
\end{DoxyCompactItemize}


\doxysubsubsection{Function Documentation}
\mbox{\Hypertarget{settings-dialog_8cpp_a6f6581a1ff693609d9383918b99117a7}\label{settings-dialog_8cpp_a6f6581a1ff693609d9383918b99117a7}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!make\_editing\_copy@{make\_editing\_copy}}
\index{make\_editing\_copy@{make\_editing\_copy}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{make\_editing\_copy()}{make\_editing\_copy()}}
{\footnotesize\ttfamily void make\+\_\+editing\+\_\+copy (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}}}]{props }\end{DoxyParamCaption})}

\mbox{\Hypertarget{settings-dialog_8cpp_a85956dc9849133da7b4bf0c7be510513}\label{settings-dialog_8cpp_a85956dc9849133da7b4bf0c7be510513}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!read\_settings@{read\_settings}}
\index{read\_settings@{read\_settings}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{read\_settings()}{read\_settings()}}
{\footnotesize\ttfamily void read\+\_\+settings (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



read\+\_\+settings 

This file needs to be read from the users home directory to ensure it is writable. \mbox{\Hypertarget{settings-dialog_8cpp_a8dd746dfd5b2f0859b7d4f6a9b7cde80}\label{settings-dialog_8cpp_a8dd746dfd5b2f0859b7d4f6a9b7cde80}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!write\_settings@{write\_settings}}
\index{write\_settings@{write\_settings}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{write\_settings()}{write\_settings()}}
{\footnotesize\ttfamily void write\+\_\+settings (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Main\+Window\+::write\+Settings. 

This file needs to be read from the users home directory to ensure it is writable 

\doxysubsubsection{Variable Documentation}
\mbox{\Hypertarget{settings-dialog_8cpp_aa0e77cd8c0b3c23654afe61a9615ed8a}\label{settings-dialog_8cpp_aa0e77cd8c0b3c23654afe61a9615ed8a}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!accept\_@{accept\_}}
\index{accept\_@{accept\_}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{accept\_}{accept\_}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_a4eea196dcdbc639ced9795286fc1bf1e}{Dictionary}} accept\+\_\+}

\mbox{\Hypertarget{settings-dialog_8cpp_ab0cd7ef18c1d39e48f306c09d8763684}\label{settings-dialog_8cpp_ab0cd7ef18c1d39e48f306c09d8763684}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!display\_props@{display\_props}}
\index{display\_props@{display\_props}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{display\_props}{display\_props}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} display\+\_\+props}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_use\_opengl"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_renderhint\_aa"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_renderhint\_text\_aa"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_renderhint\_smooth\_pix"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_renderhint\_high\_aa"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_renderhint\_noncosmetic"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_show\_scrollbars"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_scrollbar\_widget\_num"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_crosshair\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_bg\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_selectbox\_left\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_selectbox\_left\_fill"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_selectbox\_right\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_selectbox\_right\_fill"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_selectbox\_alpha"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_zoomscale\_in"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}display\_zoomscale\_out"{}}}
\DoxyCodeLine{\}}

\end{DoxyCode}
\mbox{\Hypertarget{settings-dialog_8cpp_a9fb534ec665bb6dc228988512525beb6}\label{settings-dialog_8cpp_a9fb534ec665bb6dc228988512525beb6}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!extensions@{extensions}}
\index{extensions@{extensions}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{extensions}{extensions}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} extensions}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}100"{}}, \textcolor{stringliteral}{"{}10o"{}}, \textcolor{stringliteral}{"{}ART"{}}, \textcolor{stringliteral}{"{}BMC"{}}, \textcolor{stringliteral}{"{}BRO"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}CND"{}}, \textcolor{stringliteral}{"{}COL"{}}, \textcolor{stringliteral}{"{}CSD"{}}, \textcolor{stringliteral}{"{}CSV"{}}, \textcolor{stringliteral}{"{}DAT"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}DEM"{}}, \textcolor{stringliteral}{"{}DSB"{}}, \textcolor{stringliteral}{"{}DST"{}}, \textcolor{stringliteral}{"{}DSZ"{}}, \textcolor{stringliteral}{"{}DXF"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}EDR"{}}, \textcolor{stringliteral}{"{}EMD"{}}, \textcolor{stringliteral}{"{}EXP"{}}, \textcolor{stringliteral}{"{}EXY"{}}, \textcolor{stringliteral}{"{}EYS"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}FXY"{}}, \textcolor{stringliteral}{"{}GNC"{}}, \textcolor{stringliteral}{"{}GT"{}}, \textcolor{stringliteral}{"{}HUS"{}}, \textcolor{stringliteral}{"{}INB"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}JEF"{}}, \textcolor{stringliteral}{"{}KSM"{}}, \textcolor{stringliteral}{"{}PCD"{}}, \textcolor{stringliteral}{"{}PCM"{}}, \textcolor{stringliteral}{"{}PCQ"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}PCS"{}}, \textcolor{stringliteral}{"{}PEC"{}}, \textcolor{stringliteral}{"{}PEL"{}}, \textcolor{stringliteral}{"{}PEM"{}}, \textcolor{stringliteral}{"{}PES"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}PHB"{}}, \textcolor{stringliteral}{"{}PHC"{}}, \textcolor{stringliteral}{"{}RGB"{}}, \textcolor{stringliteral}{"{}SEW"{}}, \textcolor{stringliteral}{"{}SHV"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}SST"{}}, \textcolor{stringliteral}{"{}STX"{}}, \textcolor{stringliteral}{"{}SVG"{}}, \textcolor{stringliteral}{"{}T09"{}}, \textcolor{stringliteral}{"{}TAP"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}THR"{}}, \textcolor{stringliteral}{"{}TXT"{}}, \textcolor{stringliteral}{"{}U00"{}}, \textcolor{stringliteral}{"{}U01"{}}, \textcolor{stringliteral}{"{}VIP"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}VP3"{}}, \textcolor{stringliteral}{"{}XXX"{}}, \textcolor{stringliteral}{"{}ZSK"{}}}
\DoxyCodeLine{\}}

\end{DoxyCode}
\mbox{\Hypertarget{settings-dialog_8cpp_a3415c43dc9ddd4e350a3cd05408d5e90}\label{settings-dialog_8cpp_a3415c43dc9ddd4e350a3cd05408d5e90}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!general\_props@{general\_props}}
\index{general\_props@{general\_props}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{general\_props}{general\_props}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} general\+\_\+props}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_icon\_theme"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_icon\_size"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_mdi\_bg\_use\_logo"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_mdi\_bg\_logo"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_mdi\_bg\_use\_texture"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_mdi\_bg\_texture"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_mdi\_bg\_use\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_mdi\_bg\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}general\_tip\_of\_the\_day"{}}}
\DoxyCodeLine{\}}

\end{DoxyCode}
\mbox{\Hypertarget{settings-dialog_8cpp_a93f1c79614443586aa3717994044ab41}\label{settings-dialog_8cpp_a93f1c79614443586aa3717994044ab41}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!opensave\_props@{opensave\_props}}
\index{opensave\_props@{opensave\_props}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{opensave\_props}{opensave\_props}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} opensave\+\_\+props}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}opensave\_custom\_filter"{}}}
\DoxyCodeLine{\}}

\end{DoxyCode}
\mbox{\Hypertarget{settings-dialog_8cpp_a88c087253e91f6285b91958e77a3d401}\label{settings-dialog_8cpp_a88c087253e91f6285b91958e77a3d401}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!preview@{preview}}
\index{preview@{preview}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{preview}{preview}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_a4eea196dcdbc639ced9795286fc1bf1e}{Dictionary}} preview}

Embroidermodder 2.

\DoxyHorRuler{0}


Copyright 2013-\/2022 The Embroidermodder Team Embroidermodder 2 is Open Source Software. See LICENSE for licensing terms.

\DoxyHorRuler{0}


Use Python\textquotesingle{}s PEP7 style guide. \href{https://peps.python.org/pep-0007/}{\texttt{ https\+://peps.\+python.\+org/pep-\/0007/}} The actuator changes the program state via these global variables.

These copies of the settings struct are for restoring the state if the user doesn\textquotesingle{}t want to accept their changes in the settings dialog. \mbox{\Hypertarget{settings-dialog_8cpp_a9c848650a85b3e2aad23a0afa5cf922d}\label{settings-dialog_8cpp_a9c848650a85b3e2aad23a0afa5cf922d}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!prompt\_props@{prompt\_props}}
\index{prompt\_props@{prompt\_props}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{prompt\_props}{prompt\_props}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} prompt\+\_\+props}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}prompt\_text\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}prompt\_background\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}prompt\_font\_family"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}prompt\_font\_size"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}prompt\_save\_history"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}prompt\_save\_history\_as\_html"{}}}
\DoxyCodeLine{\}}

\end{DoxyCode}
\mbox{\Hypertarget{settings-dialog_8cpp_a1bf7f5a1ff3294041a5188afff074aa6}\label{settings-dialog_8cpp_a1bf7f5a1ff3294041a5188afff074aa6}} 
\index{settings-\/dialog.cpp@{settings-\/dialog.cpp}!quick\_snap\_props@{quick\_snap\_props}}
\index{quick\_snap\_props@{quick\_snap\_props}!settings-\/dialog.cpp@{settings-\/dialog.cpp}}
\doxyparagraph{\texorpdfstring{quick\_snap\_props}{quick\_snap\_props}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidermodder_8h_ac0c47f2f1845fe2047ec8991451a4223}{String\+List}} quick\+\_\+snap\+\_\+props}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_endpoint"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_midpoint"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_center"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_node"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_quadrant"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_intersection"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_extension"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_insertion"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_perpendicular"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_tangent"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_nearest"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_apparent"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_parallel"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_locator\_color"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_locator\_size"{}},}
\DoxyCodeLine{    \textcolor{stringliteral}{"{}quicksnap\_aperture\_size"{}}}
\DoxyCodeLine{\}}

\end{DoxyCode}
